function flog($fname, $ftext, $write_a_w_state = null){ if($write_a_w_state) $write_a_w_state = 8; // FILE_APPEND else $write_a_w_state = 0; // FILE_APP $fp = "/home/virtwww/w_2315art-ru_25432bcf/http/log/" . substr($fname, 0, strpos($fname, ".")) . "_" . date('m') . "_" . date('Y') . substr($fname, strpos($fname, ".")); file_put_contents($fp, date("Y-m-d H:i:s ") . $ftext . " ", $write_a_w_state); }
require_once("wp-load.php");